.PHONY: all clean

all: liblcom.a

C_SRC= $(wildcard *.c)
C_OBJ= $(C_SRC:.c=.o)

ASM_SRC= $(wildcard *.asm)
ASM_OBJ= $(ASM_SRC:.asm=.o)


liblcom.a: $(C_OBJ) $(ASM_OBJ)
	ar rc liblcom.a $(C_OBJ) $(ASM_OBJ)

%.o: %.c
	gcc -Wall -c $<

%_isr.o: %_isr.asm
	nasm -t -f coff $<

	

%_asm.o: %_asm.asm
	nasm -t -f coff $<


clean:

	rm $(C_OBJ)
	rm $(ASM_OBJ)
	rm liblcom.a


